package server.mapper;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zyy
 * @description 上下文应用实体类
 */
public class Context {

    /**
     * 应用请求路径
     */
    private String path;
    /**
     * 应用磁盘绝对路径
     */
    private String absolutePath;
    /**
     * 包装实体对象集合
     */
    private List<Wrapper> wrappers = new ArrayList<>();

    public Context(String path, String absolutePath) {
        this.path = path;
        this.absolutePath = absolutePath;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRealPath() {
        return absolutePath;
    }

    public void setRealPath(String realPath) {
        this.absolutePath = realPath;
    }

    public List<Wrapper> getWrappers() {
        return wrappers;
    }

    public void setWrappers(List<Wrapper> wrappers) {
        this.wrappers = wrappers;
    }
}
